from django.conf.urls import patterns, url
from usuarios import views
from universidades.views import ajax_univ_request
from usuarios.views import *
from django.core.urlresolvers import reverse

urlpatterns = patterns('',
    url(r'^agregar/$', views.agregar, name='agregar'),
    url(r'^editar/$', views.editar, name='editar'),
    url(r'^editaruniversidad/$', views.editaruniv, name='editaruniv'),
    url(r'^agregar/ajax_univ_request/$', ajax_univ_request, name='ajax_univ_request'),
    url(r'^ajax_email_verif/$', views.ajax_email_verif, name='ajax_email_verif'),
    url(r'^agregar/ajax_email_verif/$', views.ajax_email_verif, name='ajax_email_verif'),
    url(r'^validar/$', views.validar, name='validar'),
    url(r'^administrar/$', views.administrar, name='administrar'),
    url(r'^validar/(?P<fila>\w{0,50})/$', views.validar, name='validar'),
    url(r'^administrar/(?P<fila>\w{0,50})/$', views.administrar, name='administrar'),
    #Todo es parte del modulo para reset de contrasenha. NO TOCAR!. magic
    url(r'^password/reset/$', views.password_reset, {'post_reset_redirect' : '/plataforma/usuarios/password/reset/done/'}, name="password_reset"),
    (r'^password/reset/done/$', views.password_reset_done),
    (r'^password/reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', views.password_reset_confirm, {'post_reset_redirect' : '/plataforma/usuarios/password/done/'}),
    (r'^password/done/$', views.password_reset_complete),
)
